package com.base.commonlib.http.builder;

import com.base.commonlib.http.call.DataRequestCall;
import com.base.commonlib.http.call.DataSynRequestCall;
import com.base.commonlib.http.request.PostContentRequest;
import com.base.commonlib.http.request.PutContentRequest;
import com.base.commonlib.http.service.PostService_Content;
import com.base.commonlib.http.service.PutService_Form;

import java.util.Map;

import okhttp3.RequestBody;

/**
 * Date：2019/3/29 上午11:59
 * Creator：arvin
 * Des：
 */

public class PutContentBuilder extends BaseRequestBuilder<PutContentBuilder, DataRequestCall, DataSynRequestCall> {
    protected Map<String, RequestBody> content;

    public PutContentBuilder() {
        service=PutService_Form.class;
    }

    public PutContentBuilder content(Map<String, RequestBody> content) {
        this.content = content;
        return this;
    }

    @Override
    public DataRequestCall build() {
        return (new PutContentRequest(method, service, content, headers,baseUrl)).build();
    }

    @Override
    public DataSynRequestCall SynBuild() {
        return (new PutContentRequest(method, service, content, headers,baseUrl)).synBuild();
    }
}
